package com.sunlands.zlcx.usercenter.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import java.io.Serializable;

/**
 * @author shixiaopeng
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@DynamicUpdate
@DynamicInsert
public class InviteCodeH5VO implements Serializable {

    private static final long serialVersionUID = -1427975848079627189L;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "用户名称")
    private String userName;

    @ApiModelProperty(value = "用户头像")
    private String avatarUrl;

    @ApiModelProperty(value = "是否被使用，true已用，false没用")
    private Boolean isUsed;

    @ApiModelProperty(value = "邀请码")
    private String code;

    @ApiModelProperty(value = "有效时间 单位：秒")
    private Long validTime;


}
